<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 
	
<ui:composition template="/templates/template.xhtml">
	<ui:define name="tituloPagina">Bem vindo ao sistema locação</ui:define>
	<ui:define name="conteudoPrincipal">
		<p:panel header="Cadastre a marca dos Carros" style="width:600px;">
		<h:panelGrid columns="3">
			<p:outputLabel value="Nome" for="nome" />
				<p:inputText required="true" requiredMessage="Campo Obrigatório"
				id="nome" value="#{carrosBean.nome}" />
			
				<p:message for="nome"> </p:message>
				
			<p:outputLabel value="Descricao" for="descricao" />
				<p:inputTextarea required="true" requiredMessage="Campo Obrigatório"
				id="descricao" value="#{carrosBean.descricao}">
				</p:inputTextarea> 
				
				<p:message for="descricao"> </p:message>	
		</h:panelGrid>
				<f:facet name="footer">
					<p:commandButton update=":formConteudo"
			action="#{carrosBean.salvar()}" value="Enviar" />
			</f:facet>	
		</p:panel>
	</ui:define>
</ui:composition>
 
</html>
